import cupk.abner.Chessman;
import cupk.abner.ChessmanMemento;

public class Main {
    public static void main(String[] args) {
        Chessman chess = new Chessman("车",1,1);
        ChessmanMemento memento = chess.save();
        chess.display();
        chess.setX(4);
        chess.setY(5);
        chess.restore(memento);
    }
}